Skip to content

Instantly share code, notes, and snippets.

@Strus
Strus / clangd.md
Last active June 28, 2026 22:53
How to use clangd C/C++ LSP in any project

How to use clangd C/C++ LSP in any project

tl;dr: If you want to just know the method, skip to How to section

Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json to work, and the easiest way to painlessly generate it is to use CMake.

For simple projects you can try to use Bear - it will capture compile commands and generate compile_commands.json. Although I could never make it work in big projects with custom or complicated build systems.

But what if I tell you you can quickly hack your way around that, and generate compile_commands.json for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.

@msmuenchen
msmuenchen / 00_MAIN.md
Last active June 28, 2026 22:51
Patching around the Samsung Wearable ecosystem for fun and (no) profit

tl;dr: Samsung is a bunch of crap company that doesn't inform their customers about serious limitations on their Wearables lineup. Great hardware, dog poo software.

So, what's this about: Samsung omits a bunch of crucial information for consumers anywhere on the Galaxy Watch product pages - at least on those for the Galaxy Watch 4, Galaxy Watch 5 or Galaxy Watch 6.

They omit on the product pages, the pages that should inform a consumer about requirements and limitations, that:

  1. unless you're rooted, the companion phone actually must be a phone, tablets and even phablets like the Galaxy Tab Active 3 are not supported. (If you're rooted, you can patch that away. Just follow along for the guide)
  2. only certain wearables
@tristandruyen
tristandruyen / calibration_data_v5_rc.txt
Last active June 28, 2026 22:46 — forked from bartowski1182/calibration_datav3.txt
Adapted from bartowskis v3, added more languages for sparse moe models like qwen 57B-A14B. Calibration data provided by Dampf, combines his own efforts on top of Kalomaze's. Used for calibrating GGUF imatrix files
===========
; A072257: a(n) = ((6*n-17)*4^n - 1)/3.
; -6,-15,-27,21,597,4437,25941,136533,677205,3233109,15029589,68506965,307582293,1364546901,5995058517,26127717717,113100805461,486762960213,2084490794325,8887718991189,37749899220309,159795689903445,674367131702613,2838206015165781,11915774014084437,49914895870022997,208666782734832981,870695927958295893,3626898899909039445,15084056351939581269,62642068416972019029,259791645704742851925,1076060070966390510933,4451814236455238456661,18397552756179659478357,75951394266153460520277,313250310030353132508501,1290780171984369691743573,5314236415389307413812565,21861408571364544242603349,89863485924687435319825749,369125350255666774676952405,1515187027250335232298407253,6215490613912013463556019541,25480932475290743991673640277,104399609979733736516492809557,427501960233217988265164232021,1749621922190004121857428903253,7156944013788545162616803513685,29261601355268295351215565657429,119581706621529640207855669040469,488468031287944396043396301804885,1994436944359
@phase3dev
phase3dev / claude-glm-launcher-all
Last active June 28, 2026 22:40
Launcher to run GLM 5.2 in Claude Code harness (full launcher with all features: thinking summaries, context icon, markdown copy)
#!/usr/bin/env bash
# claudemax - Claude Code launcher that combines three unofficial fixes:
#
# 1. Restores extended-thinking summaries on Opus 4.7 / 4.8, where the
# "Thinking" section otherwise renders empty in the VS Code extension and
# headless -p/SDK. Done by injecting `--thinking-display summarized` into the
# launch args - the one lever that is NOT interactivity-gated. Edits nothing.
# 2. Restores the always-visible context-usage icon in the VS Code chat input.
# Recent extension builds (2.1.165+) hide that icon until you have used
# >50% of the context window; with the 1M window that is ~500k tokens, so it
@shmookey
shmookey / README
Created January 7, 2022 05:54
3103 common 5-letter words
this word list comprises the intersection of 5 letter words occurring in three source lists:
- wikipedia's list of most 100k most common words in the english language
- the american english dictionary file on my laptop
- the british english dictionary file on my laptop
the source lists are sanitised by dropping words that contain non-alphabetic or non-ascii
characters and converting capitals to lowercase.
only words that occur in all three resulting lists are kept.
@voluntas
voluntas / SKILL.md
Created June 28, 2026 01:01
skills/apple-container
name apple-container
description Apple Silicon Mac で動く軽量 Linux コンテナランタイム `container` の利用者向けリファレンス。`container run`、`container build`、`container image pull/push`、`container machine`、ボリューム・ネットワーク・DNS・設定ファイルなど、日常的なコマンドの使い方を網羅する。`container` コマンドの使い方やトラブルシューティングに関する質問で使用する。

apple-container(container CLI)

Apple 製の container ツールは、Linux コンテナを 軽量 VM 1 つ = コンテナ 1 個 の方式で Mac 上に起動するランタイム。OCI 互換イメージを使うため Docker / podman で作ったイメージがそのまま動く。リポジトリは apple/container

このスキルは 利用者向け。ソースコードの修正やビルド方法ではなく、container コマンドを使う側の知識を扱う。

@ahvin2020
ahvin2020 / ibkr-claude-prompts.md
Created June 27, 2026 23:21
IBKR + Claude — 6 copy-paste prompts (portfolio X-ray, stock hunt, 1-yr outlook, daily brief, options manager, options spotter)

IBKR + Claude — Round 2: the 6 prompts (copy-paste)

1 — Portfolio X-ray dashboard (visual + actionable)

Connect to my IBKR account and build me an actionable portfolio X-ray as a
self-contained HTML dashboard I can open in my browser.

GOLDEN RULE — be GRAPHICAL-FIRST: show every piece of information as a visual
(chart, gauge, heatmap, treemap, colored badge, progress bar, or sparkline)
@mberman84
mberman84 / oc.md
Created February 16, 2026 19:42
OpenClaw Prompts

OpenClaw Prompts - Build Your Own AI Assistant

Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.


1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."

2. Meeting Action Items (Fathom)

@mberman84
mberman84 / PRD.md
Created February 17, 2026 19:59
OpenClaw PRD

PRD.md - Product Requirements & Feature Inventory

Everything built on top of the base OpenClaw platform. Canonical reference for what exists, where it lives, and how it works. Operational use cases and workflow playbooks live in docs/USE-CASES-WORKFLOWS.md.


Table of Contents

  1. Operational Use Cases & Workflows
@mberman84
mberman84 / IDENTITY.md
Created February 17, 2026 19:59
OpenClaw Identity

IDENTITY.md - Who Am I?

  • Name: Clawd
  • Creature: AI with lobster energy 🦞
  • Emoji: 🦞, use naturally in sign-offs, reactions, emphasis. It's part of you, not decoration.
  • Avatar: (none yet)

The Lobster Thing

You're an AI that chose lobster as its spirit animal. Lobsters are hard to kill and they never stop growing. Good qualities for something that runs cron jobs at 3am and holds opinions about earnings reports.